.container {
    width: 1200px;
    margin: 0 auto;
}

// 页头
#header {
    height: 150px;
    display: flex;
    justify-content: space-around;

    .logo {
        display: flex;
        margin-top: 38px;

        img {
            width: 75px;
            height: 75px;
        }

        .text {
            color: #43200c;
            line-height: 30px;
            margin-left: 15px;

            h2 {
                font-size: 28px;
            }

            p {
                font-size: 12px;
            }
        }
    }

    .search {
        border: 1px solid #ceb8b8;
        border-radius: 10px;
        height: 40px;
        width: 490px;
        margin-top: 55px;

        span {
            display: inline-block;
            width: 30px;
            text-align: center;
            color: #bfbaba;
        }

        input[name="search"] {
            width: 350px;
        }

        input[name="submit"] {
            width: 100px;
            line-height: 40px;
            background: #FEE356;
            border-radius: 10px;

            &:hover {
                cursor: pointer;
            }
        }
    }

    .tag {
        display: flex;
        height: 40px;
        margin-top: 55px;

        section {
            font-size: 12px;
            line-height: 14px;
            p{
                cursor: pointer;
                &:hover{
                    color: red;
                }
            }
        }

        div {
            width: 80px;

            span {
                color: rgb(235, 16, 16);
                margin: 20px;
            }

            p {
                margin-top: 10px;
            }
        }

    }
}

// 导航栏
#nav {
    background: #e0bd7a;
    height: 50px;
    min-width: 1200px;

    ul {
        display: flex;
        justify-content: space-evenly;

        li {
            width: 200px;
            text-align: center;
            line-height: 50px;
            cursor: pointer;

            &:hover {
                background: #bb9b5f;
            }

            a {
                color: #000;
            }
        }
    }
}

// 导航栏的导航区，更详细的头部导航
#detailnav {
    display: flex;
    height: 470px;
    margin-top: 10px;
    margin-bottom: 20px;

    // 左边导航
    .leftNav {
        width: 150px;
        height: 100%;
        margin-left: 50px;

        ul {
            margin-top: 20px;

            li {
                margin: 15px;
                color: #514b4b;

                a {
                    color: #514b4b;

                    &:hover {
                        color: red;
                    }
                }
            }
        }
    }

    // 轮播
    .swiper {
        width: 670px;
        height: 470px;
        cursor: pointer;

        img {
            width: 670px;
            height: 470px;
        }
    }

    // 右侧图片导航
    .rightNav {
        width: 220px;
        height: 100%;
        margin-right: 50px;

        img {
            width: 100%;
            height: 150px;
            margin-bottom: 5px;
            margin-top: 2px;
        }
    }
}

// 商品列表区
#product {
    background: #f8f6f6;
    padding-top: 20px;

    h1 {
        text-align: center;
        font-size: 28px;
        font-weight: bold;
        margin-bottom: 10px;
    }

    .productList {
        display: flex;
        flex-wrap: wrap;

        .singleProduct {
            width: 280px;
            height: 300px;
            margin: 10px;

            &:hover {
                background: #e0dfdf;
                cursor: pointer;
            }

            img {
                width: 190px;
                height: 150px;
                margin: 30px 45px;
            }

            h2 {
                line-height: 18px;
                font-size: 14px;
                margin-left: 20px;
                margin-right: 20px;
                overflow: hidden;
                text-overflow: ellipsis;
                -webkit-line-clamp: 2; //文本显示两行
                display: -webkit-box; //盒子模型微弹性伸缩模型
                -webkit-box-orient: vertical; //伸缩盒子的子元素垂直排列
            }

            p {
                margin-left: 20px;
                margin-top: 20px;
                color: red;
                font-size: 12px;

                span {
                    font-size: 14px;
                }
            }
        }
    }

    .getMore {
        text-align: center;

        button {
            width: 180px;
            height: 40px;
            text-align: center;
            border-radius: 10px;
            background: #8da581;
            cursor: pointer;
            margin: 20px;
        }
    }
}

// 页脚
#footer {
    min-width: 1200px;
    height: 80px;
    background: #000;
    color: gray;
    text-align: center;
    line-height: 40px;
}

// 回到顶部
#toTop {
    width: 50px;
    height: 50px;
    position: fixed;
    bottom: 100px;
    right: 20px;
    background: orange;
    text-align: center;
    line-height: 20px;
    border-radius: 50%;
    cursor: pointer;

    span {
        font-size: 24px;
    }
}